﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Blog.Models;
using BlogModel.DAL;
using BlogModel;

namespace Blog.Controllers
{
    public class BlogController : Controller
    {
      
        public ActionResult Index()
        {
           BlogStartModel blogStartModel= new BlogStartModel();
           blogStartModel.Users = UserDB.GetUsers();
           blogStartModel.Posts = PostDB.GetAllPosts();
           //blogStartModel.Blogs = BlogDB.GetAllBlogs();
          
           
           return View(blogStartModel);
        }
    }
}